===============================
Enhanced Debugger Release Notes
===============================
These notes contain installation information, description of features
that may not be included in the on-line help, known issues and
limitations for the Enhanced Debugger (EDB).

Debugging Itanium(TM)-based applications
----------------------------------------
The Enhanced Debugger is a 32-bit application
which runs on both Win32 and Win64 systems.
It can be used to debug both IA-32 applications 
and Itanium(TM)-based applications.

Debugging Itanium-based applications is done
using a remote debug server even if the debugger
is running on the same machine as the application.

*** Important ***
Itanium-based applications must be debugged
using the "Remote Load" or "Remote Attach" command.
*****************

Win32 applications are debugged using the "Load" or "Attach"
commands.

-----------------
EDB Installation
-----------------
If the installation program detects a Pentium(r) III processor 
and Windows* NT 4 with Service Pack 5 (or newer), a driver is 
installed to allow debug of the SSE registers.   The driver, 
viaxxmmd, must be running to correctly view these registers. 

When run on a Win32 system, the installation software installs 
EDB and creates an appropriate environment to support the 
debugging of Win32 applications.  To debug Win64 applications, 
the same software package must be installed on the Win64 system. 
When installed on a Win64 system, the installation software 
also installs Remote Debugging Support. This includes the
installation of debug servers which may require additional setup
before the debugging of a Win64 application can occur. This setup
is described below along with instructions for loading an
Itanium-based application for debug.

Trouble-Shooting EDB Registration Errors
----------------------------------------
If EDB fails to execute due to a DLL registration error, perform 
the following steps to correct the problem:
 
1) Change to the EDB installation directory
2) Run register.bat 

Remote Debug Setup and Use
--------------------------
There are two debug servers provided with this release: the DCOM 
debug server and named-pipe/serial debug server. Several requirements
must be met in order to use the DCOM debug server if running the
debugger on a remote Win32 system.  If these requirements can be met
or if the debugger is being run on the same Win64 system as the
application being debugged, then the DCOM debug server should be used.
It is the preferred server because it does not require manual startup and
communication is faster. 

Directions for using the DCOM debug server and for using 
the named-pipe/serial debug server follow. 

Using the DCOM Debug Server
---------------------------
If the debugger and Itanium-based application are running
on the same Win64 system, nothing special is required. Just
remember to use the Remote Load command as described below
to load the application.  

If the debugger is running on a remote Win32 system, you must meet
the following requirements in order to use the DCOM debug server.

Requirements for Using the DCOM debug server:
* Your user login name on the Win32 system must be the same as
  that on the Win64 system (no administrator privilege is required).
* Your user login on the Win64 system must have administrator 
  privileges.
* The Win64 system must be added to the network domain.
* You must log onto the physical Win64 system as a network domain user
  before the remote connection will be allowed.
* Or, if you prefer to use Microsoft Terminal Server Client to log onto
  the Win64 system, you need to change the EDB DCOM server's (edbautosv.exe)
  default configuration as follows: 
  a) Type "dcomcnfg" in a Win64 console window
  b) Find the EDB DCOM server at:
       Component Services->Computers->My Computer->DCOM Config->edbautosv
  c) Right click "edbautosv" and select "Properties"
  d) Select "Identity" tab, select "The launching user" radio button,
     and then click "Apply" and "OK" buttons.

Once you have your login on the Win32 and Win64 systems setup as
described above, you can proceed with loading the Itanium-based
application as described below.


Loading Itanium-based Application with DCOM Connection
------------------------------------------------------
1) Invoke EDB.
2) Select File->Remote Load from the menu to bring up the Remote Load dialog.
3) Add a connection, specifying Win64*DCOM in the 'Platform' field and the
   name of the Win64 system in the 'Name of remote' field (e.g. \\mysystem).
4) Fill in the remaining fields in the Remote Load dialog and click Load.

The DCOM debug server will be started for you automatically and the Itanium-based
application will be loaded for debugging.


Trouble-Shooting the Use of DCOM Debug Server
---------------------------------------------
If the DCOM debug server is not properly registered on the Win64 
system, the error "Unable to connect - unknown error" will occur. 

If a COM error occurs during a Remote Load, check that the path and
filename of your application on the Win64 system match what was 
entered in the Remote Load dialog.

**************************************************************
*****      !!!!!       IMPORTANT       !!!!!             *****
*****  When EDB is running on a remote Win32 system,     *****
*****  a user with administrative privileges must be     *****
*****  logged into the console of the physical Intel(R)  *****
*****  Itanium(TM) system where the application will     *****
*****  be executed or you must reconfigure the server.   *****
*****  The same user account must be used to run the     *****
*****  debugger on the Win32 system or the remote load   *****
*****  will fail.                                        *****
**************************************************************


Using The Named-Pipe/Serial Debug Server
----------------------------------------
The named-pipe/serial debug server provides an alternative method
of performing remote debugging in the event that DCOM services
are unavailable.  Use of the DCOM debug server is preferred as
communication is faster and there is no requirement for manual
startup of the server.

The named-pipe/serial debug server must be manually started on the
Win64 system prior to doing a Remote Load command from the debugger.
Different connection points are created depending on how you start
this server. Start the server by entering a command from one of the
options described below in a Win64 command window.

Option 1: "edbsv" is the default invocation and it specifies that
you wish to use a named-pipe with a default name as the connection to
communicate between the host system running EDB and the remote debug server.
The default name given to the pipe is \\<NameOfSystem>\pipe\edb64pipe.

 
Option 2: "edbsv <NameOfPipe>" is the same as option 1 except that 
you choose the name of the pipe. For example, if you invoke the 
server as "edbsv debugpipe1" on a system named "jesse" then a pipe 
named \\jesse\pipe\debugpipe1 will be created. 

 
Option 3: "edbsv COM1" or "edbsv COM2" specifies that you wish to 
use a serial communication port for communication. This is a slow 
method of communication and is not the preferred method. Start the 
server with the argument COM1 (use COM2 only if you have a second 
serial port) to select the communication port to which you will 
connect. By using this option, it is assumed that COM1/COM2 port
of your Win64 system has been connected with COM1/COM2 port of your
Win32 system by a null-modem cable correctly.

Once the debug server is running on the Win64 system, you will be
able to use Remote Load to load an Itanium-based application for debug
as described below. 

Loading Itanium-based Application with Named-pipe Connection
-------------------------------------------------------------
1) Invoke EDB.
2) Select File->Remote Load from the menu to bring up the Remote Load dialog.
3) Add a connection, specifying Win64*PIPE in the 'Platform' field and the
   name of the pipe you started in the 'Name of remote' field
   (e.g. \\mysystem\pipe\pipename).
4) Fill in the remaining fields in the Remote Load dialog and click Load.

Loading Itanium-based Application with Serial Connection
-------------------------------------------------------------
1) Invoke EDB.
2) Select File->Remote Load from the menu to bring up the Remote Load dialog.
3) Select COM1 or COM2 from the Connection field drop-down list.
4) Fill in the remaining fields in the Remote Load dialog and click Load.

*** Remote connections must be re-created ***
Any remote connections you created using a previous release of EDB 
must be deleted and created again.  To delete a connection, simply 
select the connection name in the Remote Load dialog box and then hit 
the Delete key on the keyboard.


Remote IA-32 debug and remote attach-to-process
-----------------------------------------------
A self-extracting zip file is provided for installation on remote 
Win32 systems.  Use the on-line help topic How to Establish an IA-32 
Remote Connection to guide you through installation.  On step 6 of the 
instructions, the Distributed COM Configuration Properties dialog box, 
you must set the properties for the AttaProcSvr as well as 
CoTargetController Server.  This makes remote load and remote attach 
capabilities available for EDB.  The installation
creates a new directory, edbserver\, that contains all the files needed 
for remote debug.  The file names may differ from that referred to in 
the on-line help.

---------------------------
Recent Enhancements to EDB
---------------------------

Restart
-------
To restart an application, use the Execute->Restart menu item.  This 
will persist breakpoints set in dynamically loaded libraries of 
the reloaded application.  


IA-32 XMM register display
--------------------------
The XMM register display now provides complete presentation options for 
the data displayed.  A right button click in the window will display the 
options available for viewing.


Data breakpoints
----------------
EDB now supports data breakpoints. They are implemented at the hardware 
level, so they will not significantly slow down the execution of the 
application being debugged.

You add a data breakpoint by opening the Breakpoint window and selecting 
Add from the right-button menu list. Specify the data address explicitly 
or use a symbolic expression (e.g. &myvar ).

Enter the number of bytes to watch. You must specify this value as a power 
of two; it currently defaults to the value 0 (i.e., 1 byte).  If you 
are watching a 4-byte integer value, you should enter a value of 2 
(i.e., 4 bytes). On Itanium-based systems, you can watch a range of 
addresses up to 2**31 bytes in length. However, the start address and 
number of bytes to watch must conform to the architecture alignment 
rules.  Therefore, if you wish to watch a 32-byte data address range, 
the specified start address must be on a 32-byte boundary.  You can 
set the action that causes the break to access (read or write), 
write (write only) or read (read only).

You can set a maximum of 4 data breakpoints at one time.

Note: Under the Intel Itanium architecture, a data breakpoint 
will cause execution to stop BEFORE the address being watched is read or 
written. Under the IA-32 architecture, the stop occurs AFTER the address 
has been read or written.


Redirection of I/O
------------------
* If you redirect your application's output to a file 
(e.g., myapp > c:\outfile.txt), then any input to your application 
must come from a file. Interactive input will not work. You must put 
the responses to interactive questions in a file and provide that as 
input to the application using the Load dialog box Program Arguments 
field (e.g., < c:\infile > c:\outfile.txt). 

* If you wish to redirect input from a file to your application 
(e.g., myapp < c:\infile), then you must also redirect any output 
from that application to a file. If the application is sending its 
output to the standard output file (i.e., normally displays on the screen) 
then you must redirected it to a file instead. You can specify the 
file name to redirect the output to in the Load dialog box Program 
Arguments field (e.g., < c:\infile > c:\myapp_output.txt). If you do not 
do so, the output will be written to a file named "edb_output.txt". 

EDB supports I/O redirection for both Win32 and Win64 applications.  You 
should specify the redirection in the Load or Remote Load dialog's 
Program Arguments input box. There is a strict order for entering values 
in this box which is as follows:

[ProgramArguments]  [/Options]  [<  InputFileName]  [> OutputFileName]

All components are optional.  The input and output file names must 
consist of complete pathnames (e.g., > C:\logfile).


OutputDebugString 
-----------------
EDB now supports the OutputDebugString function.  If your application 
makes calls to the Win32 API OutputDebugString function, EDB will display 
the information in the Output window.


Thread identification
---------------------
Thread identification has been enhanced.  Hover the cursor over the thread 
name in the Control window view and the Thread Id will be displayed.


DLL unload events
-----------------
EDB now supports DLL unload events.  This resolves symbol access issues 
with DLLs.

Attach-to-process
-----------------
EDB now supports attach-to-process.  You can attach to a local or 
remote Win32 application or remote Win64 application that was started 
outside the debugger. 

Warning: After attaching to a process, the process will be killed when 
you exit the debugger. There is no detach mechanism that will allow the 
process to continue executing. Be extremely careful when selecting the 
process to which EDB attaches.

* Attach-to-remote-process may require that the user invoking the 
process and the one attaching be the same.  

* When using named-pipe communication for remote debug of 
Itanium-based applications, a debugger server must be created for 
each debug session. 

To attach to local Win32 processes use File->Attach Process and select
the process you want to debug.

To attach to a running remote Win32 or Win64 process:

1. Select File->Attach Remote Process  menu item.  
This displays the dialog box where you perform the following actions.
 
2. Specify the connection name.  
For remote Win64 this is the connection specified when starting the 
debug server (edbsv) described in the Installation section above. 

3. Specify the Local executable path and file name.  
This is a local copy of the remote executable to which you want to 
attach.  The debugger uses the local copy to look up symbolic debug 
information found in the program database file (.PDB). 

4. Click on the Get Remote Proc ID button.  
Wait for EDB to populate the window with a list of the active 
processes running on the system specified in the Connection box.
 
5. Select the process to which you want to attach (it should 
correspond to the executable file specified in step 3 above). 

6. Click on the Attach button. 
The debugger will then read the symbolic information for the 
application and attach itself to the process. When attaching 
to large applications, you should have the Control view open and 
look for a thread with "t1" prepended to your executable file's 
name (e.g., if you attached to program "foo.exe" the thread's 
name would be "t1foo.exe"). If it is present, wait for it to 
disappear before going to the next step. 

7. Use the Halt button to stop the process and look at the 
Call Stack window to determine where you have stopped. The source 
window will remain empty until you stop in or browse the call 
stack to a location containing debug symbol information. 

Note: Multiple debug sessions on Win64, loaded or attached, require 
multiple debug servers running on the SDV. This is only a 
concern when using the named-pipe version of the remote 
debug server. 

---------------------------------
EDB Issues and Known Limitations
---------------------------------

Compiler Support
----------------
* Source level debugging is only supported for applications compiled
using released debug symbol information formats.  The Intel Itanium
compilers produce this information by default. The Microsoft* beta C/C++
compiler for Itanium-based systems does not.  If using this compiler,
the /Ztmp switch must be used during compilation along with the /tmp
linker switch to produce a debug symbol format that EDB supports.  

Remote Debugging
----------------
* You must make sure that the local copy and remote copy of an
application being debugged remotely are identical. Mismatched
executables will result in unpredictable behavior and could cause
EDB to terminate abnormally.

* To delete a connection item from the "Remote File Load/connection"
list, you select the item, hit the Delete key, and then you must
dismiss the "Remote File Load" dialogue by clicking the "Cancel" button.
To delete multiple connections, you must repeat this entire procedure.
Deleting multiple connections without dismissing the dialogue in between
will not result in all of the selected connections being deleted.

* If the debug session appears to be hung from both local and 
remote system, you must terminate both the debugger and the remote 
debug server before you can restart the debugging session. To 
terminate the debugger, use the task manager. To terminate the 
remote debugger server, type <Ctrl-C> in the command window where 
the server was started. 

* Do not attempt to load another application before the debugger 
is finished loading the current application. The application is 
finished loading when the Disassembly window contains disassembled 
instructions.
 
C++ Language Support 
--------------------
* EDB will only be able to display base components of a derived 
object as this SDK release does not provide C++ runtime type 
information. For example, EDB will not be able to display the 
baseMember by expanding pBase in the following C++ code fragment: 

  class Base { int baseMember; };
  class Derived : public Base { /* ... */ };
  Base* pBase = new Derived;<o:p </o:p 

* The debugger cannot access C/C++ goto target labels. 


FORTRAN Language Support
------------------------
* Attempting to display a public variable defined in a MODULE  
from within the USE'ing program unit results in 
"symbol not found" error. The workaround is to prepend the 
name of the module to the variable name as in MODNAME::VARNAME. 
This error only occurs in Fortran applications compiled with 
the efl compiler for a Win64 system. 

* If you attempt to Step-Into an alternate entry point of a 
procedure/function, you will actually step over the call. Set 
a breakpoint at the alternate entry point of the 
procedure/function where you wish to stop in order to work 
around this problem. 

* The debugger cannot properly display pointers to arrays that 
are passed as arguments.

* You cannot use FORTRAN CHARACTER strings in an expression. If 
you have the declaration CHARACTER ONECHAR then the expression 
ONECHAR .EQ. 'A' in the watch window results in a "bad operand" 
error. You must enter the expression ONECHAR(1) .EQ. 'A' instead. 

* Most any type of variable with a length of 1 byte (e.g., BYTE 
or INTEGER(KIND=1)) will have its Type shown as CHARACTER(1).  
If the value is negative, EDB will display it incorrectly in 
decimal display mode. 

* Attempting to display a section of an array that the program 
defines to be an array section results in EDB displaying the 
wrong elements and values. To work around the problem, display 
either the entire array or individual elements of the array. 

* Use array section expressions to display small sections 
of large FORTRAN arrays. It can take more than a minute to 
retrieve the first thousand elements of an array. 


Conditional Breakpoints 
-----------------------
* In the event that a conditional expression cannot be
evaluated when the corresponding breakpoint is encountered,
a warning message is popped up and the condition is assumed
to be true (i.e., execution is halted). Check for incorrect
syntax or use of variables that are not in scope at the point
where the breakpoint occurred. Entering the expression in the
Watch window will often give a more specific reason as to why
the evaluation of that expression failed.

* Specifying a data breakpoint on a variable that is passed by
reference and using a variable in its conditional expression
may result in a failure to evaluate the condition.  This will
occur if the data breakpoint is hit when outside the scope of
the variable used in the expression.


Source and Disassembly Views 
----------------------------
* If you cannot see the instruction pointer or any breakpoint 
icon in the windows, change your workspace background color 
to a different color. Use the Color dialog box from the 
Configuration menu. 


Window Focus 
------------
* When you float a window away from the Session Manager and 
give it focus, using any menu command from the Session Manager 
to do any action puts the focus back to the Session Manager 
rather than keeping the focus on the floating window. Use the 
toolbar buttons instead to keep the correct focus. 


Watch and Locals Views 
----------------------
* You must enter enum values as numeric values, not the enum 
string names. For example, for the following code: 

  enum Color {Red, Blue, Yellow}
  Color myColor = Red;

The value of myColor is shown as Red inside the Watch window, 
instead of 0. However, you cannot modify the value of myColor 
by entering Blue. You must type 1. EDB will then display the 
value as Blue.


--------------------------------------------------------------------
Intel, the Intel logo, MMX and Pentium are registered 
trademarks of Intel Corporation. 

Itanium is a trademark of Intel Corporation. 

*Other brands and names are the property of their respective owners. 

Copyright(c) 2000 - 2001, Intel Corporation. All Rights Reserved.

